rectangle
Type
keyword
Summary
Specifies that a button, field, or graphic object is shaped like a rectangle. It also designates the paint tool used to draw rectangles and squares.
Syntax
rectangle
Description
Use the rectangle keyword to paint a rectangle or square with the penColor or to change a graphic to a rectangle shape.
When using the Rectangle tool, the cursor is a crosshairs shape (over stack windows) or an arrow (anywhere else). This tool is used to draw a rectangle or square in the penColor, filled with the brushColor (or brushPattern).
If you try to paint with the Rectangle tool on a card that has no images, an image the size of the card is created to hold the painting. If the current card already has one or more images, painting outside the image has no effect.
Setting the style of a graphic to rectangle makes the graphic into a rectangle. Rectangle graphics, unlike painted rectangles, can be changed and reshaped: use the height and width properties to change the shape and size of the rectangle.
Setting the style of a field or button to rectangle a/makes it a rectangle shape.
Examples
choose rectangle tool
set the style of button ID 3 to rectangle
Related
command: choose
glossary: object, keyword, paint tool
property: width, brushColor, height, properties, penColor, brushPattern
Compatibility and Support
Introduced
LiveCode 1.0
OS
mac
windows
linux
ios
android
Platforms
desktop
server
mobile